<?php
include_once(dirname(__FILE__)."../../TMS_TEDxCairo_AOP/AOP.php");
include_once(dirname(__FILE__)."../../TMS_TEDxCairo_DATABASE_DAO/UserDAO.class.php");
include_once(dirname(__FILE__)."../../TMS_TEDxCairo_DATABASE_DAO/TaskDAO.class.php");
if(!isset($_REQUEST["page"]))
{
    $user = new UserDAO();
    $taskDAO = new TaskDAO();
    $tasks = $taskDAO->listUserWeekTasks($_SESSION['CURRENT_USER']->id);
    include_once ('views/index.html');
}
else{
    include_once ("{$_REQUEST["page"]}.php");
}
?>